<extend name="base/index" />

	<block name="content">
		<!-- 页面部分 -->
		<div class="page-content">

			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
			<div id="portlet-config" class="modal hide">
				<div class="modal-header">
					<button data-dismiss="modal" class="close" type="button"></button>
					<h3>portlet Settings</h3>
				</div>
				<div class="modal-body">
					<p>Here will be a configuration form</p>
				</div>
			</div>

			<!-- END SAMPLE PORTLET CONFIGURATION MODAL FORM-->

			<!-- BEGIN PAGE CONTAINER-->        
				<div class="container-fluid">

				<!-- BEGIN PAGE HEADER-->

				<div class="row-fluid">

					<div class="span12">
						<!-- 页内标题和地址-->
						<h3 class="page-title">
							添加用户组 <small>添加新的用户组</small>
						</h3>

						<ul class="breadcrumb">
							<li>
								<i class="icon-home"></i>
								<a href="index.html">管理后台</a> 
								<i class="icon-angle-right"></i>
							</li>
							<li>
								<a href="#">节点管理</a>
								<i class="icon-angle-right"></i>
							</li>
							<li><a href="#">添加用户</a></li>
						</ul>
						<!-- END 页内标题和地址-->
					</div>
				</div>
				<!-- END PAGE HEADER-->

				<!-- 页面主要内容-->
				<div class="row-fluid">
					<div class="span12">
						<!-- BEGIN VALIDATION STATES-->
						<div class="portlet box green">
							<div class="portlet-title">
								<div class="caption"><i class="icon-edit"></i>填写用户组的基本资料</div>
								<div class="tools">
									<a href="javascript:;" class="collapse"></a>
									<a href="#portlet-config" data-toggle="modal" class="config"></a>
									<a href="javascript:;" class="reload"></a>
									<a href="javascript:;" class="remove"></a>
								</div>
							</div>

							<div class="portlet-body form">
								<!-- 开始表单 -->

								<h3>表单中出现的参数为用户组基本参数，均不可为空！</h3>

								<form action="__ACTION__" id="form_sample_2" class="form-horizontal" method="post">
									<div class="alert alert-error hide">
										<button class="close" data-dismiss="alert"></button>
										表单错误，请检查！
									</div>
									<div class="alert alert-success hide">
										<button class="close" data-dismiss="alert"></button>
										表单正确，请提交！
									</div>

									<div class="control-group">
										<label class="control-label">模块<span class="required">*</span></label>
										<div class="controls">
											<input type="text" name="module" data-required="1" class="span6 m-wrap"/>
											<span class="help-inline">例：admin</span>
										</div>
									</div>

									<div class="control-group">
										<label class="control-label">组名<span class="required">*</span></label>
										<div class="controls">
											<input name="title" type="text" class="span6 m-wrap"/>
											<span class="help-inline">例：管理组</span>
										</div>
									</div>

									<!--
									<div class="control-group">
										<label class="control-label">类型<span class="required">*</span></label>
										<div class="controls">
											<select class="span6 m-wrap" name="type">
												<option value="">请选择...</option>
												<option value="1">URL</option>
												<option value="2">菜单</option>
											</select>
											<span class="help-block">(视情况而定 )</span>
										</div>
									</div>
									-->
									
									<div class="control-group">
										<label class="control-label">描述</label>
										<div class="controls">
											<textarea name="description" class="span6 m-wrap" rows="3"></textarea>
										</div>
									</div>
									
									<div class="control-group">
										<label class="control-label">组权限</label>
										<div class="controls">
											<select name="rules[]" data-placeholder="请赋予合适的权限" class="chosen span6" multiple="multiple" tabindex="6">
												<option value=""></option>
												<notempty name="_list">
												<optgroup label="节点">
												<volist name="_list" id="vo">
												
													<option value="{$vo.id}">{$vo.title}({$vo.name})</option>
												
												</volist>
												</optgroup>
												<else/>
												<option value="">aOh! 暂时还没有内容!</option>
												</notempty>	
											</select>
											<span class="help-block">(请选择对应权限)</span>
										</div>
									</div>


									<div class="form-actions">
										<button type="submit" class="btn green">添加</button>
										<button type="button" onclick="javascript:history.go(-1);" class="btn">返回</button>
									</div>
								</form>
								<!-- END FORM-->
							</div>
						</div>
					</div>
				</div>
				<!-- END 页面主要内容 -->
			</div>
			<!-- END PAGE CONTAINER-->
		</div>
	<!-- 页面部分 -->
	</block>

	<block name="script">
		
		<script>
		jQuery(document).ready(function() {    
		   App.init(); // initlayout and core plugins
		   //Index.initIntro();
		});
		</script>
	</block>